TileView for WPF and Silverlight Quick Start > Step 1 of 3: Creating the C1TileView Application |
In this step we create a WPF application using TileView for WPF and Silverlight. When you add a C1TileView control (or C1TileView in Silverlight) to your application, you have an interface that you can display content in. To set up your project and add a C1TileView control to your application, complete the following steps that are noted where they differ between WPF and Silverlight:
Note: If you use a different project name, be sure to change references to "QuickStart" in later steps to the name of your project. |
XAML |
Copy Code
|
---|---|
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" |
WPF XAML |
Copy Code
|
---|---|
<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" Title="ComponentOne TileView for WPF and Silverlight" Height="275" Width="425"> |
Silverlight XAML |
Copy Code
|
---|---|
<UserControl x:Class="C1SilverlightCS111010.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" mc:Ignorable="d" d:DesignHeight="262" d:DesignWidth="399"> |
XAML |
Copy Code
|
---|---|
<Grid> <c1:C1TileView x:Name="C1TileView1"></c1:C1TileView> </Grid> |
This sets up your application's user interface, but if you run your application now, the C1TileView control contains no content. In the next steps we add content to the C1TileView control, and then observe some of the run-time interactions possible with the control.